<div class="box-content">
    <?php  
        $attributes = array('class' => 'email', 'id' => 'checknew');
        echo form_open($_module_name.'/permission/dels', $attributes);
    ?>    
    <input type="hidden" name="page" value="<?php echo $page; ?>">
    <table class="admindata">
        <thead>
            <tr>
                <th colspan="6">
                    <? if($this->acl->check('dels')){ ?>
                    <input type="submit" onclick="return verify_del();" name="btn_submit" class="submit" value="<?php echo lang('admin.deletes'); ?>">
                    <? } ?>
                    <?php echo lang('admin.total');?> <?php echo $num; ?> <?php echo lang('admin.record').'(s)';?>
                    <div class="fr">
                        <a href="<?=site_url($_module_name.'/fction/add')?>"><?php echo lang('admin.add_new');?></a>
                    </div>
                </th>
            </tr>
            <tr>
                <th class="checkbox"><input type="checkbox" name="sa" id="sa" onclick="check_chose('sa', 'ar_id[]', 'checknew')" /></th>
                <th><?php echo lang('permission.id');?></th>
                <th><?php echo lang('permission.code');?></th>
                <th><?php echo lang('permission.name');?></th>
                <th><?php echo lang('permission.comment');?></th>
                <th class="publish"><?php echo lang('admin.functions'); ?></th>

            </tr>                
        </thead>
        <?
        $k=1;
        foreach($list as $rs):?>
        <tr class="row<?=$k?>">
            <td><input type="checkbox" name="ar_id[]" value="<?=$rs->permission_id?>"></td>
            <td><?=$rs->permission_id;?></td>
            <td><?=$rs->permission_code?></td>
            <td><?=$rs->permission_name?></td>
            <td><?=$rs->permission_comment?></td>
            <td align="center">
                <?=$this->acl->check('edit')?icon_edit($_module_name.'/permission/edit/'.$rs->permission_id):'';?>
                <?=$this->acl->check('del')?icon_del($_module_name.'/permission/del/'.$rs->permission_id):'';?>
            </td>
        </tr>
        <?
        $k=1-$k;
        endforeach;?>
        <tfoot>
            <td colspan="6">
                <? if($this->acl->check('dels')){ ?>
                    <input type="submit" class="submit" onclick="return verify_del();" name="btn_submit" value="<?php echo lang('admin.deletes'); ?>">
                <? } ?>    
                <?php echo lang('admin.total');?> <?php echo $num; ?> <?php echo lang('admin.record').'(s)';?>
            </td>
        </tfoot>
    </table>  
    <?=form_close()?>  
</div>